import service from '@/api/http';

const gamesApi = {
  // 游戏平台下拉   入参 gameType 0 1 6 5
  getPlayBaseGameChannel: (params: object) => service.post(`/hall/playHall/getPlayBaseGameChannel`, params),
  // 游戏列表       入参 gameChannel gameType pageNum pageSize
  getAllGameList: (params: object) => service.post(`/hall/playHall/getAllGameList`, params),
  // 合作 跳转
  getExtendChannelInfo: (params: object) => service.post(`/hall/playChannel/getExtendChannelInfo`, params),
  //获取内嵌游戏地址 入参 currencyId: "1001" deviceType: 1 ifRate: 0 language: "en-US" lobbyUrl: "https://192.168.2.24:8080" mode: 0 playId: "6275"
  thirdUrl: (params: object) => service.post(`/single/gameUrl/list`, params),
  //选择兑换货币 playId currencyId
  getGameRateList: (params: object) => service.post(`/single/gameUrl/getGameRateList`, params),
  //获取可兑换货币 rateId
  findGameInRate: (params: object) => service.post(`/single/gameUrl/findGameInRate`, params),
  //获取收藏
  getUserGameCollect: (params: object) => service.post(`/hall/playHall/getUserGameCollect`, params),
  //添加收藏
  addUserGameCollect: (params: object) => service.post(`/hall/playHall/addUserGameCollect`, params),
  //最近玩过
  getRecentGame: (params: object) => service.post(`/hall/playHall/getRecentGame`, params),
  //
  getUserCollectData: (params: object) => service.post(`/hall/playHall/getUserCollect`, params),
  // 搜索功能
  findAllGameByName: (params: object) => service.post(`/hall/playHall/findAllGameByName`, params),
};

export default gamesApi;
